/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain;

import com.anwen.mongo.annotation.collection.CollectionField;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.Date;

@Data
public class IsfdMeshPreviewObject {
    /**
     * 文件路径
     */
    @CollectionField("file_path")
    @NotBlank(message = "filePath不能为空!")
    private String filePath;

    /**
     * 文件后缀
     */
    @CollectionField("file_suffix")
    @NotBlank(message = "fileSuffix不能为空!")
    private String fileSuffix;

    /**
     * 上传时间
     */
    @CollectionField("upload_time")
    @NotBlank(message = "uploadTime不能为空!")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;

    /**
     * BDF实体
     */
    @CollectionField("bdf_object")
    @NotBlank(message = "bdfObject不能为空!")
    private IsfdMeshBDFObject bdfObject;
}
